/** 财务管理路由 */
import Layout from '@/views/layout/financeLayout'

const financeRouter = {
    path: '/finance',
    component: Layout,
    redirect: '/finance/performanc',
    name: 'finance',
    meta: {
        requiresAuth: true,
        title: '财务',
        index: 0,
        type: 'finance'
    },
    children: [
        {
            path: 'performanc',
            name: 'performanc',
            component: () => import('@/views/financeManagement/performanc/index'),
            meta: {
                requiresAuth: true,
                icon: 'project',
                title: '核对业绩',
                index: 1,
                type: 'finance',
                subType: 'salary'
            }
        },
        {
            path: 'profit',
            component: () => import('@/views/financeManagement/profit/index'),
            meta: {
                requiresAuth: true,
                icon: 'customer',
                title: '利润合计',
                index: 1,
                type: 'finance',
                subType: 'achivement'
            }
        }
    ]
}

export default financeRouter
